# -*- coding: utf-8 -*-
############################################################################
from chee.shortcuts import *
from chee.models import Misc_Country
from accost.soaphandler import *
############################################################################
#### fj vnet service
class CpRatio(ClassSerializer):
    class types:
        id = Integer
        name = String
        ratio = String
class Services_FjVnet_Handler(SOAPService):
    rule = Rule('/services/fjvnet/')
    @soapmethod(String,String,Integer, String,String, Float, Boolean, Boolean, _returns=Integer)
    def addPackage(self, acc_name, acc_vnetid, package_id, start_time, due_time, price, auto_continue=True, remove=False):
        try:
            return 0
        except: return -100
    @soapmethod(String,String,_returns=Array(CpRatio))
    def getCpRatio(self, year, month):
        try:
            return []
        except: return []

        
